﻿<%@ Page Title="栏目管理" Language="C#" MasterPageFile="~/Masters/Account.Master" AutoEventWireup="true"
    CodeBehind="CatalogueList.aspx.cs" Inherits="TopSite.Account.CatalogueList" %>

<%@ Register Src="../UserDefinedControls/SelectCatalogueDropDownList.ascx" TagName="SelectCatalogueDropDownList"
    TagPrefix="uc1" %>
<%@ Register Src="../UserDefinedControls/CatalogueTree.ascx" TagName="CatalogueTree"
    TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server" ID="scm">
    </asp:ScriptManager>
    <asp:UpdatePanel runat="server" ID="udp2">
        <ContentTemplate>
            <h2>
                栏目管理
            </h2>
            <div style="float: left; width: 200px;">
                <uc2:CatalogueTree ID="CatalogueTree1" runat="server" OnSelectedNodeChanged="CatalogueTree1_SelectedNodeChanged" />
            </div>
            <div>
                <fieldset class="register">
                    <legend>栏目信息</legend>
                    <asp:HiddenField ID="txtId" runat="server" />
                    <p>
                        <asp:Label ID="TitleLabel" runat="server" AssociatedControlID="txtTitle">栏目名称:</asp:Label>
                        <asp:TextBox ID="txtTitle" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="TitleRequired" runat="server" ControlToValidate="txtTitle"
                            CssClass="failureNotification" ErrorMessage="必须填写“栏目名称”。" ToolTip="栏目名称" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label>
                            父栏目<span style="color: Red">不选择则为顶级栏目</span></label>
                        <uc1:SelectCatalogueDropDownList ID="SelectCatalogueDropDownList1" runat="server" />
                    </p>
                    <p>
                        <asp:Label ID="LabelType" runat="server" AssociatedControlID="ddlType">栏目类别:</asp:Label>
                        <asp:DropDownList ID="ddlType" runat="server">
                            <asp:ListItem Value="SinglePage">单页面</asp:ListItem>
                            <asp:ListItem Value="ArticleList">新闻列表</asp:ListItem>
                            <asp:ListItem Value="ProductList">产品列表</asp:ListItem>
                            <asp:ListItem Value="ProjectList">项目案例列表</asp:ListItem>
                            <asp:ListItem Value="JobList">招聘列表</asp:ListItem>
                            <asp:ListItem Value="FeedBackList">留言列表</asp:ListItem>
                        </asp:DropDownList>
                    </p>
                    <p>
                        <asp:Label ID="LabelOrder" runat="server" AssociatedControlID="KeyWords">排序:</asp:Label>
                        <asp:TextBox ID="Order" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="OrderRequired" runat="server" ControlToValidate="Order"
                            CssClass="failureNotification" ErrorMessage="必须填写“排序”。" ToolTip="必须填写“排序”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="OrderRangeValidator" runat="server" ControlToValidate="Order"
                            CssClass="failureNotification" ErrorMessage="*" ForeColor="Red" Type="Integer"
                            MaximumValue="10000" MinimumValue="0" Display="Dynamic"></asp:RangeValidator>
                    </p>
                    <p>
                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="KeyWords">关键词:</asp:Label>
                        <asp:TextBox ID="KeyWords" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="KeyWords"
                            CssClass="failureNotification" ErrorMessage="必须填写“关键词”。" ToolTip="必须填写“关键词”。"
                            ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="SummaryLabel" runat="server" AssociatedControlID="Summary">栏目描述:</asp:Label>
                        <asp:TextBox ID="Summary" runat="server" CssClass="textEntry" TextMode="MultiLine"
                            Rows="10"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="SummaryRequired" runat="server" ControlToValidate="Summary"
                            CssClass="failureNotification" ErrorMessage="必须填写“栏目描述”。" ToolTip="必须填写“栏目描述”。"
                            ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p class="submitButton">
                        <asp:Button ID="btnDel" runat="server" Text="删除本栏目" OnClick="btnDel_Click" />
                        <asp:Button ID="btnSaveCatalogue" runat="server" CommandName="MoveNext" Text="保存栏目"
                            ValidationGroup="RegisterUserValidationGroup" OnClick="btnSaveCatalogue_Click" />
                    </p>
                </fieldset>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
